package com.example.xch.scanzbar;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.xch.scanzbar.zbar.CaptureActivity;

public class Main2Activity extends AppCompatActivity {

    private static final int REQUEST_CODE_SCAN = 0x0000;// 扫描二维码


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        Intent intent = new Intent(Main2Activity.this, CaptureActivity.class);
        startActivityForResult(intent, REQUEST_CODE_SCAN);
    }
}
